package cn.school.workflow.vo;

import cn.school.common.BaseVO;
import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 访客申请VO
 */
@Data
@TableName("t_visit_apply")
public class VisitApplyVO extends BaseVO {

    private static final long serialVersionUID = -2266829717023123120L;

    @ApiModelProperty(value = "申请单编号")
    private String applyNo;

    @ApiModelProperty(value = "流程ID")
    private String processId;

    @ApiModelProperty(value = "访问部门")
    private String visitDept;

    @ApiModelProperty(value = "来访原因")
    private String visitReason;

    @ApiModelProperty(value = "来访区域")
    private String visitRegion;

    @ApiModelProperty(value = "来访开始时间")
    private String visitBeginTime;

    @ApiModelProperty(value = "来访结束时间")
    private String visitEndTime;

    @ApiModelProperty(value = "是否提供健康码")
    private String isHealthCode;

    @ApiModelProperty(value = "申请单状态 0-草稿 1-处理中 2-撤回 3-退回 4-办结")
    private String applyStatus;

    @ApiModelProperty(value = "来访人员集合")
    @TableField(exist = false)
    private List<VisitorInfoVO> visitorInfoList;

    @TableField(exist = false)
    private Integer pageSize;

    @TableField(exist = false)
    private Integer pageNum;
    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();

}
